<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="div-right data" style="width: 100%; height: 700px;">
	<div id="abc" class="right-header"
		style="padding: 3%; font-size: 18px;">
		<span name="warehouseId" style="display: none">${warehouse.id }</span> <span
			style="font-weight: 600;">${warehouse.name}</span><span
			style="margin-left: 5%;">${warehouse.country }&nbsp;-&nbsp;${warehouse.state }&nbsp;-&nbsp;${warehouse.city }</span><span><a
			style="margin-left: 5%;"
			onclick="update('/warehouse/warehouse?id=${warehouse.id}&status=0')">编辑/查看</a>
			<%-- <a
			style="margin-left: 5%;"
			onclick="update('/warehouse/warehouse?id=${warehouse.id}&status=1')">查看</a> --%></span>
		<span name="logisticsSize" style="display: none;">${fn:length(logisticses)}</span>
	</div>
	<div class="right-content-table" style="padding: 3%;">
		<div class="panel panel-primary">
			<div class="panel-heading">
				<h3 class="panel-title">邮寄方式</h3>
			     <a name="addLogistics"
					style="float: right; color: #ffffff; font-size: 16px; margin-top: -20px;"
					onclick="add('/logisticsHasWarehouse/logisticsHasWarehouse?warehouseId=${warehouse.id}&warehouseName=${warehouse.name }')">添加</a>
			</div>
			<div class="panel-body">

				<table class="table table-striped">
					<thead>
						<tr>
							<th>代码</th>
							<th>名称</th>
							<th>跟踪号</th>
							<th>类型</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${logisticses}" var="logistics" varStatus="vs">
							<tr>
								<td>${logistics.code }</td>
								<td>${logistics.name }</td>
								<td>${logistics.trackingNumber }</td>
								<td>${logistics.type }</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>